<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" >
<head>
    <th:block th:include="include :: header('签约产品')" />
    <th:block th:include="include :: ztree-css" />
</head>
<body class="white-bg">
<div class="wrapper wrapper-content animated fadeInRight ibox-content">
    <form class="form-horizontal m" id="form-saveSetPolicy-update" style="white-space:nowrap;">
        <div class="row">
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">代理商编号：</label>
                    <div class="col-sm-8">
                        <input name="agentNum" class="form-control"  th:value="${agentInfo.agentNum}" type="text" readonly>
                    </div>
                </div>
        </div>
        <div class="row">
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">代理商名称：</label>
                    <div class="col-sm-8">
                        <input name="agentName" class="form-control"  th:value="${agentInfo.agentName}" type="text" readonly>
                    </div>
                </div>
        </div>
        <div class="row">
                <div class="form-group">
                    <label class="col-sm-3 control-label is-required">配置政策：</label>
                    <div  >
                        <div class="col-sm-8">
                            <div th:each="p:${pList}" style="float:left;">
                                <label  class="check-box">
                                    <input name="actId" type="checkbox" th:value="${p.actId}" th:text="${p.actName}" th:checked="${p.checked}">
                                </label>
                            </div>
                        </div>
                    </div>
            </div>
        </div>
    </form>
</div>
<th:block th:include="include :: footer" />
<th:block th:include="include :: ztree-js" />
<script type="text/javascript">
    var prefix = ctx + "agentInfo/agentInfo"

    function submitHandler() {
        if ($.validate.form()) {
            $.operate.save(prefix + "/saveSetPolicy", $('#form-saveSetPolicy-update').serialize());
        }
    }

</script>
</body>
</html>
